// LostFoundCategoryServiceImpl.java
package com.csxy.six.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.csxy.six.entity.LostFoundCategory;
import com.csxy.six.mapper.LostFoundCategoryMapper;
import com.csxy.six.service.LostFoundCategoryService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LostFoundCategoryServiceImpl extends ServiceImpl<LostFoundCategoryMapper, LostFoundCategory>
        implements LostFoundCategoryService {

    @Override
    public List<LostFoundCategory> getAllCategories() {
        return lambdaQuery().orderByAsc(LostFoundCategory::getLfCatId).list();
    }
}